﻿using System;
using System.Collections.Generic;
using JetBrains.Annotations;



namespace Crocodile.LangUtils
{
    public static class ObjectExt
    {

        public static void Of<T>(this object @object, Action<T> action)
            where T: class
        {
            T x = @object as T;
            if (x != null)
                action(x);
        }


    }
}
